package com.fitzone.web;

import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(scanBasePackages = "com.fitzone")
//@EnableScheduling //开启任务调度
public class FitzoneWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(FitzoneWebApplication.class, args);
    }

//    @Bean
//    public RestHighLevelClient highLevelClient(){
//        return new RestHighLevelClient(RestClient.builder(
//                HttpHost.create("http://islunatic.icu:9200")
//        ));
//    }
}
